import routes from "./routes";
var pxtorem = require("postcss-pxtorem");
export default {
  alias: {
    "@p": "src/pages",
    "@c": "src/components",
  },

  routes,
  extraPostCSSPlugins: [
    pxtorem({
      rootValue: "75", // 一般为设计图 10分之一
      propList: ["width", "height", "margin", "padding"],
    }),
  ],
  proxy: {
  '/conner': {
    'target': 'http://api.it120.cc',
    'changeOrigin': true,
    'pathRewrite': { '^/conner' : 'conner' },
  }
   },
  dva: {},
  plugins: ["@umijs/plugins/dist/dva"],
};
